import Request from './request'

const url = '/api/auth/users'
export default {
  getUserInfo () {
    return Request.get(url)
  },
  setUser ({coins, reputations, tutorial, wechatNickname, gender, city, country, language, province, wechatAvatarUrl}) {
    return Request.post(url, {c: coins, r: reputations, t: tutorial, wnn: wechatNickname, g: gender,
            ci: city, co: country, l: language, p: province, wa: wechatAvatarUrl})
  }
}